import java.io.FileReader;
import java.io.FileWriter;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.util.*;
import java.lang.Character;
//import java.io.FileInputStream;
//import java.io.FileOutputStream;
import java.io.IOException;
import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class CopyLines{
	public static void main(String[] args) throws IOException {
		BufferedReader inputStream = null;
		PrintWriter outputStream = null;
		

		try {
			inputStream  = new BufferedReader(new FileReader("input.txt"));
			outputStream  = new PrintWriter(new FileWriter("output.txt"));

			String l;
	
			while ((l = inputStream.readLine()) != null) {
				Pattern p = Pattern.compile("[a-z][0-9][-_+]@[a-z][0-9][-_+].[a-z][0-9][-_+]");
				Matcher m = p.matcher(l);
				while (m.find()){
					System.out.println(l);
				}
			}
	
		} finally {
        		if (inputStream != null) {
	                	inputStream.close();
        	    	}
           		 if (outputStream != null) {
                		outputStream.close();
	            	}
        	}
    	}
}
